package com.imooc.factory;
/**
 * 模拟客户端实现
 * @author Wangjin
 * @Date   2018年7月23日 下午3:24:34
 */
public class ClientTest {
	public static void main(String[] args) {
//		HairInterface left = new LeftHair();
//		left.draw();
		
//		HairFactory factory = new HairFactory();
//		HairInterface left = factory.getHair("123");
//		left.draw();
		
//		HairInterface left = factory.getHairByClass("com.imooc.factory.LeftHair");
//		left.draw();
		
//		HairInterface left = factory.getHairByClassKey("in");
//		left.draw();
		
//		PersonFactory factory = new MCFactory();
//		Girl girl = factory.getGirl();
//		girl.drawWomen();
		
		PersonFactory factory = new HNFactory();
		Boy boy = factory.getBoy();
		boy.drawMan();
		
	}
}
